Patch 939583
authorRaymond Penners <pennersr@src.gnome.org>
Fri, 21 May 2004 21:12:07 +0000 (21:12 +0000)
committerRaymond Penners <pennersr@src.gnome.org>
Fri, 21 May 2004 21:12:07 +0000 (21:12 +0000)
modules/engines/ms-windows/ChangeLog.old
modules/engines/ms-windows/msw_style.c

index 191a035dab9508251661a7d826b0252c64d694e6..30ea5813e37288eef866b47369ade51a1ffc3a15 100755 (executable)
@@ -1,3 +1,10 @@
+2004-05-21  Raymond Penners  <raymond@dotsphinx.com>
+
+       * configure.in: Bump version number (0.6.0)
+       
+       * src/msw_style.c: Applied patch by John Ehresman that fixes a
+       memory leak.
+
 2004-05-21  Dom Lachowicz <cinamod@hotmail.com>
 
        * src/Theme/gtk-2.0/gtkrc: Better icon sizes
index 8d72ab6d61d59bfacb7a281c4a28976a866aba34..fdb6d583474b5b7a7592d828fd423d8bfab18c3c 100755 (executable)
@@ -519,8 +519,16 @@ setup_system_font(GtkStyle *style)
 {
   char buf[256], * font; /* It's okay, lfFaceName is smaller than 32 chars */
 
-  if ((font = sys_font_to_pango_font(XP_THEME_CLASS_TEXT, XP_THEME_FONT_MESSAGE, buf, sizeof (buf))) != NULL)
-    style->font_desc = pango_font_description_from_string(font);
+  if ((font = sys_font_to_pango_font(XP_THEME_CLASS_TEXT,
+                                     XP_THEME_FONT_MESSAGE,
+                                     buf, sizeof (buf))) != NULL)
+    {
+      if (style->font_desc)
+        {
+          pango_font_description_free (style->font_desc);
+        }
+      style->font_desc = pango_font_description_from_string(font);
+    }
 }
 
 static void